cmake_minimum_required(VERSION 3.22)

project(CollisionOBBCapsule_test)

set(HEADER_FILES
    OBBCapsPrimitiveCreator.h
)

set(SOURCE_FILES
    CapsuleModel_test.cpp
    OBB_test.cpp
)

add_executable(${PROJECT_NAME} ${HEADER_FILES} ${SOURCE_FILES})
add_definitions("-DSOFAMISCCOLLISION_TEST_SCENES_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/scenes\"")
target_link_libraries(${PROJECT_NAME} PUBLIC Sofa.Testing CollisionOBBCapsule Sofa.Component.Collision.Testing)

add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})
